<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>写给胡静</title>
  <style>
    body {
      background: linear-gradient(120deg, #f9e7e7 0%, #e0f7fa 100%);
      min-height: 100vh;
      margin: 0;
      font-family: 'Noto Serif SC', 'Songti SC', serif;
      overflow-x: hidden;
    }
    .romantic-bg {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      z-index: 0;
      pointer-events: none;
      background: url('https://img1.imgtp.com/2023/07/21/0Qw6Qw6Qw6.png') repeat top center;
      opacity: 0.08;
    }
    .love-timer {
      position: fixed;
      top: 20px;
      right: 60px;
      background: linear-gradient(135deg, rgba(255, 182, 193, 0.95) 0%, rgba(161, 196, 253, 0.95) 100%);
      border-radius: 20px;
      padding: 12px 18px;
      box-shadow: 0 4px 20px rgba(255, 182, 193, 0.25);
      z-index: 1000;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .love-timer:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 25px rgba(255, 182, 193, 0.35);
    }
    .timer-title {
      font-size: 0.9em;
      color: #fff;
      text-align: center;
      margin-bottom: 6px;
      font-weight: 600;
      letter-spacing: 1px;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    .timer-display {
      font-size: 0.85em;
      color: #fff;
      text-align: center;
      font-weight: 500;
      line-height: 1.3;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    .timer-heart {
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 1.2em;
      animation: heartbeat 1.5s ease-in-out infinite;
    }
    @keyframes heartbeat {
      0%, 100% { transform: translateX(-50%) scale(1); }
      50% { transform: translateX(-50%) scale(1.1); }
    }
    .img-list {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 60px;
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
      padding: 20px;
    }
    .img-card {
      position: relative;
      width: 100%;
      max-width: 500px;
      background: rgba(255,255,255,0.92);
      border-radius: 22px;
      box-shadow: 0 8px 32px rgba(255, 182, 193, 0.13), 0 2px 8px rgba(0,0,0,0.06);
      padding: 18px 12px 0 12px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      margin: 0;
      transition: box-shadow 0.3s, transform 0.4s;
      overflow: visible;
    }
    .img-card.left {
      align-self: flex-start;
      margin-left: 0;
      margin-right: auto;
      transform: rotate(-4deg) scale(0.98) translateX(-12px);
      box-shadow: 0 8px 32px rgba(255, 182, 193, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    }
    .img-card.right {
      align-self: flex-end;
      margin-right: 0;
      margin-left: auto;
      transform: rotate(3deg) scale(1.02) translateX(12px);
      box-shadow: 0 8px 32px rgba(182, 225, 255, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    }
    .img-card.second,
    .img-card.fourth,
    .img-card.sixth,
    .img-card.eighth,
    .img-card.tenth {
      transform: rotate(-4deg) scale(1.02);
      box-shadow: 0 8px 32px rgba(255, 182, 193, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    }
    .img-card.third,
    .img-card.fifth,
    .img-card.seventh,
    .img-card.ninth {
      transform: rotate(4deg) scale(1.02);
      box-shadow: 0 8px 32px rgba(182, 225, 255, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    }
    .img-card.second img,
    .img-card.third img,
    .img-card.fourth img,
    .img-card.fifth img,
    .img-card.sixth img,
    .img-card.seventh img,
    .img-card.eighth img,
    .img-card.ninth img,
    .img-card.tenth img {
      transform: translateX(-20px) rotate(-2deg);
    }
    .img-card img {
      max-width: 100%;
      max-height: 220px;
      border-radius: 18px;
      object-fit: cover;
      background: #fff;
      transition: transform 0.4s cubic-bezier(.4,2,.6,1), opacity 0.3s ease-in-out;
      box-shadow: 0 2px 12px rgba(255, 182, 193, 0.10);
      display: block;
      z-index: 1;
      position: relative;
      opacity: 1;
    }

    .img-card img:hover {
      transform: scale(1.06) rotate(-2deg);
    }
    .img-card.second img:hover,
    .img-card.third img:hover,
    .img-card.fourth img:hover,
    .img-card.fifth img:hover,
    .img-card.sixth img:hover,
    .img-card.seventh img:hover,
    .img-card.eighth img:hover,
    .img-card.ninth img:hover,
    .img-card.tenth img:hover,
    .img-card.eleventh img:hover,
    .img-card.twelfth img:hover {
      transform: translateX(-20px) rotate(-2deg) scale(1.06);
    }
    .art-container {
      background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('img/微信图片_20250709152413.jpg') center/cover no-repeat;
      border-radius: 14px;
      box-shadow: 0 2px 16px rgba(0,0,0,0.06);
      padding: 36px 24px;
      max-width: 420px;
      margin: 60px auto 40px auto;
      text-align: center;
      z-index: 2;
      position: relative;
    }
    .art-title {
      font-size: 1.7em;
      color: #222;
      margin-bottom: 18px;
      letter-spacing: 2px;
      font-weight: 600;
    }
    .art-message {
      font-size: 1.1em;
      color: #444;
      margin-bottom: 30px;
      line-height: 2.1;
      font-weight: 400;
    }
    .signature {
      font-size: 1em;
      color: #888;
      margin-top: 18px;
      font-style: italic;
      letter-spacing: 1px;
    }
    .deco {
      font-size: 2.2em;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      opacity: 0.88;
      pointer-events: none;
      user-select: none;
      filter: drop-shadow(0 2px 6px rgba(255,182,193,0.12));
      transition: transform 0.3s;
    }
    .deco.right {
      right: -2.2em;
    }
    .deco.left {
      left: -2.2em;
    }
    .img-card:hover .deco {
      transform: translateY(-50%) scale(1.18) rotate(-8deg);
      opacity: 1;
    }
    .music-btn {
      display: inline-block;
      background: linear-gradient(90deg, #ffb6c1 0%, #a1c4fd 100%);
      color: #fff;
      font-size: 1.18em;
      font-weight: bold;
      border: none;
      border-radius: 32px;
      box-shadow: 0 4px 16px rgba(255,182,193,0.18);
      padding: 0.7em 2.2em;
      margin-bottom: 28px;
      margin-top: 18px;
      cursor: pointer;
      letter-spacing: 2px;
      transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
      outline: none;
      position: relative;
      z-index: 10;
      animation: btn-pop 1.2s cubic-bezier(.4,2,.6,1) 1;
    }
    .music-btn:hover {
      background: linear-gradient(90deg, #a1c4fd 0%, #ffb6c1 100%);
      transform: scale(1.07) translateY(-2px);
      box-shadow: 0 8px 32px rgba(255,182,193,0.28);
    }
    @keyframes btn-pop {
      0% { transform: scale(0.7); opacity: 0; }
      60% { transform: scale(1.15); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }
    .envelope-deco {
      position: absolute;
      top: 18px;
      right: 22px;
      font-size: 2em;
      opacity: 0.85;
      pointer-events: none;
      user-select: none;
      filter: drop-shadow(0 2px 6px rgba(160,160,160,0.10));
      z-index: 3;
      transition: transform 0.3s;
    }
    .art-container:hover .envelope-deco {
      transform: scale(1.12) rotate(-8deg);
      opacity: 1;
    }
    .img-bottom {
      width: 96%;
      margin: 0 auto;
      height: 38px;
      position: relative;
      z-index: 0;
      margin-top: -12px;
    }
    .img-bottom-wave {
      background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 400 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 Q100 40 200 20 T400 20 V40 H0Z" fill="%23ffe0f0"/></svg>') no-repeat center/cover;
    }
    .img-bottom-arc {
      background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 400 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 Q200 60 400 20 V40 H0Z" fill="%23e0f7fa"/></svg>') no-repeat center/cover;
    }
    .img-bottom-diag {
      background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 400 40" fill="none" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 400,20 400,40 0,40" fill="%23b2ebf2"/></svg>') no-repeat center/cover;
    }
    .img-bottom-cloud {
      background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 400 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 Q50 10 100 30 Q150 50 200 30 Q250 10 300 30 Q350 50 400 30 V40 H0Z" fill="%23fffde4"/></svg>') no-repeat center/cover;
    }
    .img-quote {
      position: absolute;
      top: 50%;
      width: 8.5em;
      font-size: 1em;
      color: #e48fb7;
      font-family: 'Noto Serif SC', 'Songti SC', serif;
      opacity: 0.92;
      line-height: 1.5;
      background: rgba(255,255,255,0.7);
      border-radius: 1.2em;
      padding: 0.4em 0.9em;
      box-shadow: 0 2px 8px rgba(255,182,193,0.10);
      pointer-events: none;
      user-select: none;
      transform: translateY(-50%);
      z-index: 2;
      text-align: left;
    }
    .img-quote.right {
      right: -9.5em;
      text-align: left;
    }
    .img-quote.left {
      left: -9.5em;
      text-align: right;
    }
    .romantic-sep {
      font-size: 2.6em;
      text-align: center;
      color: #ffb6c1;
      margin: 0;
      line-height: 1;
      user-select: none;
      filter: drop-shadow(0 2px 8px rgba(255,182,193,0.18));
      background: linear-gradient(90deg, #ffb6c1 0%, #a1c4fd 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: sep-pop 1.8s cubic-bezier(.4,2,.6,1) infinite alternate;
    }
    @keyframes sep-pop {
      0% { transform: scale(1) rotate(-8deg); opacity: 0.7; }
      100% { transform: scale(1.18) rotate(8deg); opacity: 1; }
    }
    .img-deco {
      position: absolute;
      bottom: 18px;
      left: 18px;
      font-size: 2.2em;
      pointer-events: none;
      user-select: none;
      filter: drop-shadow(0 2px 8px rgba(255,182,193,0.18));
      opacity: 0.92;
      z-index: 2;
      animation: deco-pop 1.8s cubic-bezier(.4,2,.6,1) infinite alternate;
    }
    .img-card.fourth .img-deco,
    .img-card.sixth .img-deco,
    .img-card.eighth .img-deco,
    .img-card.tenth .img-deco {
      left: auto;
      right: 18px;
      bottom: 22px;
    }
    @keyframes deco-pop {
      0% { transform: scale(1) rotate(-8deg); opacity: 0.7; }
      100% { transform: scale(1.18) rotate(8deg); opacity: 1; }
    }
    .img-card.eleventh {
      transform: rotate(4deg) scale(1.02);
      box-shadow: 0 8px 32px rgba(182, 225, 255, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    }
    .img-card.eleventh img {
      transform: translateX(-20px) rotate(-2deg);
    }
    .img-card.twelfth {
      transform: rotate(-4deg) scale(1.02);
      box-shadow: 0 8px 32px rgba(255, 182, 193, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    }
    .img-card.twelfth img {
      transform: translateX(-20px) rotate(-2deg);
    }
    @media (max-width: 900px) {
      .img-list {
        max-width: 600px;
        gap: 20px;
      }
    }
    @media (max-width: 600px) {
      .img-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 15px;
        max-width: 100%;
      }
      .img-card {
        width: 100%;
        max-width: 350px;
        margin: 0;
        transition: box-shadow 0.3s, transform 0.4s;
        transform: none;
      }
      .img-card:nth-child(2n) {
        transform: rotate(-1deg) scale(0.98);
      }
      .img-card:nth-child(2n+1) {
        transform: rotate(1deg) scale(1.02);
      }
      .img-card.second,
      .img-card.fourth,
      .img-card.sixth,
      .img-card.eighth,
      .img-card.tenth {
        transform: rotate(-3deg) scale(1.02);
      }
      .img-card.third,
      .img-card.fifth,
      .img-card.seventh,
      .img-card.ninth {
        transform: rotate(3deg) scale(1.02);
      }
      .img-card.second img,
      .img-card.third img,
      .img-card.fourth img,
      .img-card.fifth img,
      .img-card.sixth img,
      .img-card.seventh img,
      .img-card.eighth img,
      .img-card.ninth img,
      .img-card.tenth img {
        transform: translateX(-10px) rotate(-1deg);
      }
      .img-card img {
        max-height: 180px;
        border-radius: 13px;
      }
      .img-bottom {
        height: 14px;
      }
      .deco {
        font-size: 1.1em;
        top: -10px;
      }
      .deco.right {
        right: -8px;
      }
      .deco.left {
        left: -8px;
      }
      .deco {
        font-size: 1em;
      }
      .envelope-deco {
        top: 4px;
        right: 4vw;
        font-size: 1em;
      }
      .music-btn {
        font-size: 1em;
        padding: 0.6em 1.2em;
        margin-bottom: 18px;
        margin-top: 10px;
      }
      .art-message {
        font-size: 1em;
      }
      .signature {
        font-size: 0.95em;
      }
      .img-quote {
        font-size: 0.92em;
        width: 6.5em;
        padding: 0.3em 0.6em;
      }
      .img-quote.right {
        right: -7em;
      }
      .img-quote.left {
        left: -7em;
      }
      .love-timer {
        top: 10px;
        right: 30px;
        padding: 8px 12px;
      }
      .timer-title {
        font-size: 0.8em;
        margin-bottom: 4px;
      }
      .timer-display {
        font-size: 0.75em;
      }
      .timer-heart {
        font-size: 1em;
        top: -6px;
      }
      .img-card.eleventh img {
        transform: translateX(-10px) rotate(-1deg);
      }
      .img-card.eleventh {
        transform: rotate(3deg) scale(1.02);
      }
      .img-card.twelfth img {
        transform: translateX(-10px) rotate(-1deg);
      }
      .img-card.twelfth {
        transform: rotate(-3deg) scale(1.02);
      }
      .img-card.second img:hover,
      .img-card.third img:hover,
      .img-card.fourth img:hover,
      .img-card.fifth img:hover,
      .img-card.sixth img:hover,
      .img-card.seventh img:hover,
      .img-card.eighth img:hover,
      .img-card.ninth img:hover,
      .img-card.tenth img:hover,
      .img-card.eleventh img:hover,
      .img-card.twelfth img:hover {
        transform: translateX(-10px) rotate(-1deg) scale(1.06);
      }
    }
  </style>
  <link href="https://fonts.googleapis.com/css?family=Noto+Serif+SC:400,600&display=swap" rel="stylesheet">
</head>
<body>
  <audio id="bgm" src="obj_wo3DlMOGwrbDjj7DisKw_14540061278_84ac_15fc_ed76_b6988b495733fe23cc899c14d4148fc6.mp3" loop></audio>
  <button id="playBtn" onclick="playMusic()" class="music-btn">点击播放音乐</button>
  <div class="romantic-bg"></div>
  <div class="love-timer">
    <div class="timer-title">在一起</div>
    <div class="timer-display">
      <span class="timer-heart">❤</span>
      <span id="loveTime">0天</span>
    </div>
  </div>
  <div class="img-list">
    <div class="img-card"><img src="img/QQ20250708-204547.jpg" />
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave1" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#c9e7ff"/>
            </linearGradient>
            <linearGradient id="wave2" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave1)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave2)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">❤</div>
    <div class="img-card second"><img src="img/微信图片_20250708230215.jpg" />
      <div class="img-deco">🦋</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave3" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0cfff"/>
              <stop offset="1" stop-color="#ffe0f0"/>
            </linearGradient>
            <linearGradient id="wave4" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave3)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave4)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffd700">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">✨</div>
    <div class="img-card third"><img src="img/微信图片1_20250708230249.jpg" />
      <div class="img-deco">🌈</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave5" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#e0cfff"/>
            </linearGradient>
            <linearGradient id="wave6" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0f7fa"/>
              <stop offset="1" stop-color="#f9e7e7"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave5)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave6)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🌸</div>
    <div class="img-card fourth"><img src="img/微信图片_20250708230231.jpg" />
      <div class="img-deco">🌸</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave7" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#c9e7ff"/>
              <stop offset="1" stop-color="#ffe0f0"/>
            </linearGradient>
            <linearGradient id="wave8" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0f7fa"/>
              <stop offset="1" stop-color="#f9e7e7"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave7)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave8)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffd700">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🌸</div>
    <div class="img-card fifth"><img src="img/微信图片_20250708231602.jpg" />
      <div class="img-deco">🌙</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave9" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#c9e7ff"/>
            </linearGradient>
            <linearGradient id="wave10" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave9)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave10)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🌙</div>
    <div class="img-card sixth"><img src="img/微信图片_20250708230451.jpg" />
      <div class="img-deco">⭐</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave11" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0cfff"/>
              <stop offset="1" stop-color="#ffe0f0"/>
            </linearGradient>
            <linearGradient id="wave12" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave11)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave12)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffd700">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🎀</div>
    <div class="img-card seventh"><img src="img/微信图片_20250708230404.jpg" />
      <div class="img-deco">🎀</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave13" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#e0cfff"/>
            </linearGradient>
            <linearGradient id="wave14" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0f7fa"/>
              <stop offset="1" stop-color="#f9e7e7"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave13)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave14)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🦋</div>
    <div class="img-card eighth"><img src="img/微信图片_20250708230416.jpg" />
      <div class="img-deco">🦋</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave15" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#c9e7ff"/>
              <stop offset="1" stop-color="#ffe0f0"/>
            </linearGradient>
            <linearGradient id="wave16" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0f7fa"/>
              <stop offset="1" stop-color="#f9e7e7"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave15)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave16)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffd700">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🌈</div>
    <div class="img-card ninth"><img src="img/微信图片_20250708230439.jpg" />
      <div class="img-deco">🌈</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave17" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#e0cfff"/>
            </linearGradient>
            <linearGradient id="wave18" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0f7fa"/>
              <stop offset="1" stop-color="#f9e7e7"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave17)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave18)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🎪</div>
    <div class="img-card tenth"><img src="img/微信图片_20250708230427.jpg" />
      <div class="img-deco">🎪</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave19" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#c9e7ff"/>
            </linearGradient>
            <linearGradient id="wave20" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave19)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave20)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">💝</div>
    <div class="img-card eleventh"><img src="img/微信图片_20250725210718.jpg" />
      <div class="img-deco">💝</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave21" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#ffe0f0"/>
              <stop offset="1" stop-color="#c9e7ff"/>
            </linearGradient>
            <linearGradient id="wave22" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave21)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave22)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffb6c1">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
    <div class="romantic-sep">🌹</div>
    <div class="img-card twelfth"><img src="img/微信图片_20250726083755.jpg" />
      <div class="img-deco">🌹</div>
      <div class="img-bottom">
        <svg width="100%" height="44" viewBox="0 0 400 44" fill="none" xmlns="http://www.w3.org/2000/svg">
          <defs>
            <linearGradient id="wave23" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#e0cfff"/>
              <stop offset="1" stop-color="#ffe0f0"/>
            </linearGradient>
            <linearGradient id="wave24" x1="0" y1="0" x2="400" y2="44" gradientUnits="userSpaceOnUse">
              <stop stop-color="#f9e7e7"/>
              <stop offset="1" stop-color="#e0f7fa"/>
            </linearGradient>
          </defs>
          <path d="M0 24 Q100 44 200 24 T400 24 V44 H0Z" fill="url(#wave23)"/>
          <path d="M0 34 Q100 14 200 34 T400 34 V44 H0Z" fill="url(#wave24)" opacity="0.7"/>
          <text x="340" y="32" font-size="18" fill="#ffd700">★</text>
          <text x="30" y="38" font-size="18" fill="#ff69b4">❤</text>
        </svg>
      </div>
    </div>
  </div>
  <div class="art-container">
    <span class="envelope-deco">✉️</span>
    <div class="art-title">写给胡静</div>
    <div class="art-message">
      世界很大，遇见你刚刚好。<br>
      喜欢你，是一件温柔又安静的事。<br>
      想和你一起，走过四季，<br>
      看云卷云舒，听风吹花落。<br>
      <br>
      
    </div>
    <div class="signature">—— 只写给你的情书</div>
  </div>
  <script>
    // 图片加载优化
    function preloadImages() {
      const imageUrls = [
        'img/QQ20250708-204547.jpg',
        'img/微信图片_20250708230215.jpg',
        'img/微信图片1_20250708230249.jpg',
        'img/微信图片_20250708230231.jpg',
        'img/微信图片_20250708231602.jpg',
        'img/微信图片_20250708230451.jpg',
        'img/微信图片_20250708230404.jpg',
        'img/微信图片_20250708230416.jpg',
        'img/微信图片_20250708230439.jpg',
        'img/微信图片_20250708230427.jpg',
        'img/微信图片_20250725210718.jpg',
        'img/微信图片_20250726083755.jpg'
      ];
      
      // 预加载前几张图片
      imageUrls.slice(0, 4).forEach(url => {
        const img = new Image();
        img.src = url;
      });
    }
    
    // 图片加载完成后的优化
    function optimizeImageLoading() {
      const images = document.querySelectorAll('img');
      
      // 为图片添加错误处理
      images.forEach(img => {
        img.addEventListener('error', function() {
          console.log('图片加载失败:', this.src);
        });
      });
    }
    
    // 自动平滑向下轮播，支持手动滑动时暂停，2秒后恢复
    let scrollPos = 0;
    let scrollTimer = null;
    let autoScrollActive = true;
    let resumeTimer = null;
    function autoScroll() {
      if (!autoScrollActive) return;
      scrollPos = window.scrollY + 2; // 加快速度
      window.scrollTo({ top: scrollPos, behavior: 'smooth' });
      if (scrollPos < document.body.scrollHeight - window.innerHeight) {
        scrollTimer = setTimeout(autoScroll, 12); // 更快
      }
    }
    function pauseAutoScroll() {
      autoScrollActive = false;
      if (scrollTimer) clearTimeout(scrollTimer);
      if (resumeTimer) clearTimeout(resumeTimer);
      resumeTimer = setTimeout(() => {
        autoScrollActive = true;
        autoScroll();
      }, 2000);
    }
    function playMusic() {
      document.getElementById('bgm').play();
      document.getElementById('playBtn').style.display = 'none';
    }
    // 恋爱计时器功能 - 优化版本
    const startDate = new Date(2025, 3, 5); // 缓存开始日期
    let loveTimeElement;
    
    // 等待DOM加载完成后获取元素
    document.addEventListener('DOMContentLoaded', function() {
      loveTimeElement = document.getElementById('loveTime');
      // 立即更新一次
      updateLoveTimer();
    });
    
    function updateLoveTimer() {
      const now = new Date();
      const diffTime = now - startDate;
      const diffDays = Math.max(0, Math.floor(diffTime / (1000 * 60 * 60 * 24)));
      loveTimeElement.textContent = `${diffDays}天`;
    }

    window.onload = function() {
      // 启动图片加载优化
      preloadImages();
      optimizeImageLoading();
      
      // 每分钟更新一次恋爱计时器，减少性能消耗
      setInterval(updateLoveTimer, 60000);
      
      setTimeout(autoScroll, 1000);
      // 监听鼠标滚动和触摸滑动
      window.addEventListener('wheel', pauseAutoScroll, { passive: true });
      window.addEventListener('touchstart', pauseAutoScroll, { passive: true });
      window.addEventListener('touchmove', pauseAutoScroll, { passive: true });
      // 自动尝试播放音乐
      var audio = document.getElementById('bgm');
      var playBtn = document.getElementById('playBtn');
      var playPromise = audio.play();
      if (playPromise !== undefined) {
        playPromise.then(_ => {
          playBtn.style.display = 'none';
        }).catch(_ => {
          playBtn.style.display = '';
        });
      }
    };
  </script>
</body>
</html>